
export function addPageDataNeedReload(pageName) {
  if (window.parent) {
    window.parent.postMessage({
      cmd: 'addPageDataNeedReload',
      params: { pageName: pageName }
    })
  } else {
    this.$EventBus.$emit('addPageDataNeedReload', { pageName: pageName })
  }
}

export function getAndDeletePageDataNeedReload(pageName) {
  if (window.parent) {
    return window.parent.getAndDeletePageDataNeedReload(pageName)
  } else {
    return false
  }
}
